
$(document).ready(function() {

    $("tr.team").click(function(event)
	{
		var name = $(this).attr("name");
		var id = $(this).attr("id");
		var answer = confirm(name+" is your team?");
		if (answer){
			window.location.href = "selectteam.php?id="+id;
		}
	});
});